<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="order" tagdir="/WEB-INF/tags/order"%>

<td>
	<common:htmlEscape value="${order.tagNames}" returnValue="tagNames" />
	<common:htmlEscape value="${order.orderNo}" returnValue="orderNo" />
	<input type="checkbox" name="multiIds" value="${order.salesOrderId}"
		class="checkbox" title="${orderNo}" tags="${tagNames}" id="multiIds_${order.salesOrderId}"/>
</td>
<td>
	<span class="expand toggleScreen" onclick="toggleScreen(this)" id="toggleButton${order.salesOrderId}"></span>
</td>
<td>
		${order.orderNo} 
</td>
<td>
	<common:datetimeFormat date="${order.createTime}" />
</td>
<td>
	<common:currencyFormat value="${order.totalAmount}" />
</td>
<td>
	${order.orderAddress.firstname}
</td>
<td>
	${order.paymentTypeDesc}
</td>
<td>
	${order.deliveryTypeDesc}
</td>
<td>
	<span class="paymentStatus_${order.paymentStatus}" title="<fmt:message key="salesOrder.paymentStatus.${order.paymentStatus}" />"></span><fmt:message key="salesOrder.paymentStatus.${order.paymentStatus}" />
</td>
<td>
	<span class="shipmentStatus_${order.shipmentStatus}" title="<fmt:message key="salesOrder.shipmentStatus.${order.shipmentStatus}" />"></span><fmt:message key="salesOrder.shipmentStatus.${order.shipmentStatus}" />
</td>
<td>
	<span class="orderStatus_${order.orderStatus}" title="<fmt:message key="salesOrder.orderStatus.${order.orderStatus}" />"></span><fmt:message key="salesOrder.orderStatus.${order.orderStatus}" />
</td>
<td>
	<c:forEach items="${order.tagNameArray}" var="tagName">
		<common:htmlEscape value="${tagName}" returnValue="returnTagName" />
		<b title="${returnTagName}" class="tag"><common:displayString
				value="${tagName}" length="5" />
		</b>
	</c:forEach>
</td>

<script type="text/javascript">
$j(document).ready(function () {
	<c:if test="${fromReload}">
		$j('#toggleButton${order.salesOrderId}').click();
	</c:if>
});	

</script>
